package com.gpframework.common.enums;

import lombok.Getter;

/**
 * 用户余额变更日志枚举
 *
 * @author BrinedFish
 * @create 2022-04-18 18:01
 */
@Getter
public enum UserBalanceModifyLogEnum {

    /**
     * 储蓄变更
     * key是user_balance_modify_log#balance_type
     */
    STORED_MONEY_MODIFY("储蓄变更", "40"),
    BUY_CARD_INTEGRAL("会员卡送积分", "50"),
    BUY_COURSE_INTEGRAL("课程送积分", "55"),
    BUY_CABINET_INTEGRAL("租柜送积分", "60"),
    DEPOSIT_INTEGRAL("消费定金送积分", "65"),
    STORED_MONEY_INTEGRAL("消费储值送积分", "70"),
    USER_ENTRANCE_INTEGRAL("入场赠送积分", "75"),

    /**
     * 积分变更
     */
    INTEGRAL_MODIFY("积分变更"),
    DEPOSIT_MODIFY("定金变更"),
    HANDSEL_MODIFY("押金变更"),
    REFUND_HANDSEL("退押金"),

    /**
     * user_balance_modify_log#status
     */
    TRANSFER("已转让", "50"),
    INVALID("无效", "40"),
    RETURNED("已归还", "30"),
    NOT_RETURNED("未归还", "20"),
    NOT_PAY("未支付", "10"),

    /**
     * user_balance_modify_log#content
     */
    STORED_VALUE_LOG_CONTENT("充值日志内容", "充值"),


    /**
     * 定金使用类型
     */
    MEMBER_BASE("通用", "0"),
    MEMBER_CARD("会员卡", "10"),
    MEMBER_COURSE("私教课", "20"),
    ;

    /**
     * 业务名称
     */
    private String name;

    private String key;

    UserBalanceModifyLogEnum() {
    }

    UserBalanceModifyLogEnum(String name) {
        this.name = name;
    }

    UserBalanceModifyLogEnum(String name, String key) {
        this.name = name;
        this.key = key;
    }
}
